package cn.edu.gdut.deepcode.mapper;

import cn.edu.gdut.deepcode.domain.po.Canvas;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 画布基础信息表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2025-04-11
 */
public interface CanvasMapper extends BaseMapper<Canvas> {
    @Select("select count(*) id,user_id from canvas group by user_id;")
    List<Canvas> selectAllGroupByUserId();
}
